
<!DOCTYPE html>
<html>
<head>
	<title>修改栏目</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" href="__ADMIN__/bootstrap/css/bootstrap.min.css" media="all">
    <link rel="stylesheet" href="__ADMIN__/adminlte/css/AdminLTE.min.css">
    <link rel="stylesheet" href="__ADMIN__/adminlte/css/font-awesome.min.css">
    <link rel="stylesheet" href="__ADMIN__/plugins/fileinput/css/fileinput.min.css">
	<style type="text/css">

	</style>
</head>
<body>
    <div class="panel-body">
      <div class="row">
        <div class="col-xs-12">
         <div class="nav-tabs-custom">
            <ul class="nav nav-tabs">
              <li class="header"><i style="cursor: pointer;" onclick="window.history.back(-1);" class="fa fa-mail-reply-all"></i>修改内容</li>
              <li class="active"><a href="#tab_1-1" data-toggle="tab">常规选项</a></li>
              <li><a href="#tab_2-2" data-toggle="tab">SEO选项</a></li>
            </ul>
             <form class="form-horizontal" enctype="multipart/form-data" method="post" action="{:url('editproduct')}">
            <div class="tab-content">
              <div class="tab-pane active" id="tab_1-1">
                    <div class="box-body">
                            <input name="id" value="{$productContent.id}" type="hidden" />
                          <div class="form-group">
                            <label  class="col-sm-1 control-label"><span style="color:#f00;">*</span>标题</label>
                            <div class="col-sm-3">
                              <input type="text" name="title" class="form-control" value="{$productContent.title}"  placeholder="标题名称">
                            </div>
                          </div>
                          <div class="form-group">
                            <label  class="col-sm-1 control-label">所属栏目</label>
                            <div class="col-sm-2">
                              <select name="column_id" class="form-control">
                                  {volist name="proColumn" id="vo"}
                                  <option value="{$vo.id}" {if condition="$productContent.column_id eq $vo.id"} selected {/if} > {if condition="$vo['level'] neq 0"} |{/if}<?php echo str_repeat('—',$vo['level']) ?>{$vo.column_name}</option>
                                  {/volist}
                              </select>
                            </div>
                          </div>
                        <div class="form-group">
                            <label  class="col-sm-1 control-label"><span style="color:#f00;">*</span>作者</label>
                            <div class="col-sm-2">
                                <input type="text" name="author" class="form-control" value="{$productContent.author}"  placeholder="作者姓名">
                            </div>
                        </div>
                          <div class="form-group">
                            <label  class="col-sm-1 control-label">文档属性</label>
                            <div class="col-sm-2">
                                <label class="checkbox-inline">
                                    <input type="checkbox" name="property[]" {range name="'h'" value="$productContent.property" type="in" }checked {/range} value="h"> 头条[h]
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" name="property[]" {range name="'c'" value="$productContent.property" type="in" }checked {/range}  value="c"> 推荐[c]
                                </label>
                            </div>
                          </div>
                          <div class="form-group">
                                <label  class="col-sm-1 control-label">栏目图片</label>
                                <div class="col-sm-4">
                                    <input name="img_url" id="fileImg"  type="file">
                                    <p class="help-block">图片格式jpg,png,gif，大小不超过1M，上传尺寸：500px*500px</p>
                                </div>
                                <div class="col-sm-4">
                                    <img src="{$productContent.img_url}" height="40" />
                                </div>
                          </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label"><span style="color:#f00;">*</span>内容详情</label>
                            <div class="col-sm-11">
                                <textarea id="container"  name="content"> {$productContent.content}</textarea>
                            </div>
                        </div>

                    </div>
              </div>
              <!-- /.tab-pane -->
              <div class="tab-pane" id="tab_2-2">
                    <div class="box-body">

                      <div class="form-group">
                         <label  class="col-sm-1 control-label">SEO标题</label>
                        <div class="col-sm-4">
                          <input name="seo_title" type="text" class="form-control" value="{$productContent.seo_title}"  placeholder="SEO标题">
                        </div>
                      </div>
                      <div class="form-group">
                         <label  class="col-sm-1 control-label">SEO关键字</label>
                        <div class="col-sm-4">
                          <textarea name="seo_keywords" class="form-control" rows="3"  placeholder="SEO关键字">{$productContent.seo_keywords}</textarea>
                        </div>
                      </div>
                      <div class="form-group">
                         <label  class="col-sm-1 control-label">SEO描述</label>
                        <div class="col-sm-4">
                          <textarea name="seo_description" class="form-control" rows="3"  placeholder="SEO描述">{$productContent.seo_description}</textarea>
                        </div>
                      </div>
                        <div class="form-group">
                            <label  class="col-sm-1 control-label">发布状态</label>
                            <div class="col-sm-2">
                                <select name="is_publish" class="form-control">
                                    <option value="0" {if condition="$productContent.is_publish eq 0"} selected {/if} >发布</option>
                                    <option value="1" {if condition="$productContent.is_publish eq 1"} selected {/if} >草稿</option>
                                </select>
                            </div>
                        </div>
                    </div>
              </div>
                <div class="box-body">
                  <div class="form-group">
                      <label  class="col-sm-1 control-label"></label>
                      <div class="col-sm-2">
                          <button type="submit" class="btn btn-block btn-info">确认提交</button>
                      </div>
                  </div>
                </div>
            </div>
             </form>
            <!-- /.tab-content -->
          </div>
        </div>
      </div>
    </div>
    
</body>

<!-- jQuery 2.2.3 -->
<script src="__ADMIN__/plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="__ADMIN__/bootstrap/js/bootstrap.min.js"></script>
<script src="__ADMIN__/plugins/fileinput/js/fileinput.min.js"></script>
<script src="__ADMIN__/plugins/fileinput/js/locales/zh.js"></script>
<script type="text/javascript" src="__ADMIN__/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="__ADMIN__/ueditor/ueditor.all.js"></script>
<script>
    var ue = UE.getEditor('container');
    ue.ready(function() {
        ue.setHeight(400);
    });
    $("#fileImg").fileinput({
        language: 'zh',                        
        browseLabel: '选择附件',
        uploadAsync:false,
        showUpload: false,
        showPreview:false,
    })

</script>
</html>